package com.demo.goodsinfo;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/goods/info")
public class GoodsInfoAction {
	
	@Autowired
	GoodsInfoService goodsInfoServiceImpl;
	
	@RequestMapping(value = "/query")
	@ResponseBody
	public List<Object> datas(HttpServletRequest request, HttpServletResponse response) {
		String searchText = request.getParameter("st");
		return goodsInfoServiceImpl.queryDatas(searchText);
	}

}
